package dto

import (
	"yunj/pkg/yunj/core/builder/builderdto"
)

type AdminCategoryPageIndexNormalData struct {
	DefaultAlias          string `json:"defaultAlias"`
	LevelLimit            int    `json:"levelLimit"`
	EditUrl               string `json:"editUrl"`
	TreeNodesUrl          string `json:"treeNodesUrl"`
	HandleUrl             string `json:"handleUrl"`
	HasAddAuth            bool   `json:"hasAddAuth"`
	HasEditAuth           bool   `json:"hasEditAuth"`
	HasRecycleBinAuth     bool   `json:"hasRecycleBinAuth"`
	HasRecycleBinListAuth bool   `json:"hasRecycleBinListAuth"`
	HasSortAuth           bool   `json:"hasSortAuth"`
}

type AdminCategoryPageTreeNode struct {
	builderdto.FormTreeEditNode
	Alias string `json:"alias"`
	Img   string `json:"img"`
}

type AdminCategoryAddResponse struct {
	Id   uint64 `json:"id"`
	Name string `json:"name"`
}

type AdminCategoryPageListItemResponse struct {
	Id    uint64 `json:"id"`
	Name  string `json:"name"`
	Alias string `json:"alias"`
	Img   string `json:"img"`
}

type AdminCategoryPageFormLoadResponse struct {
	Id             uint64 `json:"id"`
	Name           string `json:"name"`
	Alias          string `json:"alias"`
	Img            string `json:"img"`
	Desc           string `json:"desc"`
	CreateTime     int64  `json:"create_time"`
	LastUpdateTime int64  `json:"last_update_time"`
}
